package org.aaa.cloudagent;

import java.net.*;  
import java.io.*;  

public class FileServer {

	FileServer() throws Exception  
	  {   
	    Log.op("starting......");  
	    server();  
	  }  
	  
	  public void server() throws Exception  
	  {  
	    ServerSocket serversock = new ServerSocket(10007);  //����˿�  
	    while(true)  
	    {     
	      Socket sock = serversock.accept();            //ѭ���ȴ�ͻ���l��  
	      new Thread(new FileServThread(sock)).start(); //���ɹ�l�ӿͻ��˺������߳̽����ļ�  
	    }  
	  }  
}
